/*
package com.xy.controller.uc;

import com.xy.common.base.ApiBaseResponse;
import com.xy.repository.VersionRepository;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;


@Api(value = "版本Controller", description = "省市区版本")
@RestController
@RequestMapping(value = "api/version")
public class VersionController {

    @Autowired
    private VersionRepository versionRepository;


    @ApiOperation("返回省市区版本")
    @ResponseStatus(HttpStatus.OK)
    @GetMapping(value = "/areVersion")
    @Transactional
    public ResponseEntity getArea(@RequestParam("versionType") String versionType, @RequestParam("versionId") String versionId) {

       // String serVersionType= versionRepository.findAllByVersiontype();
        String serVersionId=versionRepository.findAllByVersionType(versionType).getVersionId();
        if(serVersionId.equals(versionId)==false){
            return ResponseEntity.ok(ApiBaseResponse.fromHttpStatus(HttpStatus.OK, serVersionId));
        }
        return ResponseEntity.ok(ApiBaseResponse.fromHttpStatus(HttpStatus.OK));
    }
}
*/
